<?php

namespace addons\crontab\controller;

use addons\unishop\extend\Snowflake;
use addons\unishop\model\Address;
use addons\unishop\model\Order;
use addons\unishop\model\OrderExtend;
use addons\unishop\model\OrderProduct;
use addons\unishop\model\Product;
use addons\unishop\model\User;
use app\admin\model\Admin;
use app\admin\model\unishop\Area;
use app\common\library\China;
use think\Controller;
use think\Db;
use think\Log;

/**
 * /usr/bin/php  /www/wwwroot/hxyp.11taotao.com/public/index.php  /addons/crontab/water/inject > /dev/null  2>&1 &
 * 刷数据
 * @internal
 */
class Lian extends Controller
{

    /**
     * 初始化方法,最前且始终执行
     */
    public function _initialize()
    {
        // 只可以以cli方式执行
        if (!$this->request->isCli()) {
            $this->error('Water script only work at client!');
        }

        parent::_initialize();

        // 清除错误
        error_reporting(0);
        // 设置永不超时
        set_time_limit(0);
    }

}
